package org.bing.engine.controller.lifecycle;

import org.bing.engine.common.logging.Log;
import org.bing.engine.common.logging.LogFactory;
import org.bing.engine.common.process.ProcessManager;
import org.bing.engine.controller.preference.ConfigurationManager;
import org.bing.engine.controller.service.LocalInstanceManager;
import org.bing.engine.utility.helper.GuidGenerator;

public class GeneralContainerLifecycle extends AbstractContainerLifecycle {
    protected static final Log logger = LogFactory.getLog(GeneralContainerLifecycle.class);
    protected LocalInstanceManager instance;
    protected ConfigurationManager configuration;
    protected ProcessManager process;

    public void setProcessManager(ProcessManager pm) {
        this.process = pm;
    }

    public void setConfigurationManager(ConfigurationManager mgr) {
        this.configuration = mgr;
    }

    public void setLocalInstanceManager(LocalInstanceManager inst) {
        this.instance = inst;
    }

    public String guid() {
        return GuidGenerator.generate();
    }
}
